-- GENERATED SPELL FOR [Blighted Horror] --


function spell0_8521(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(12542,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8521', 5500, 1)
end

function Sorts_8521(pUnit, Event)
local choix_sorts_8521 = math.random(0, 0)
if choix_sorts_8521 == 0 then
pUnit:RegisterEvent('spell0_8521', 1, 1)
end
end

function mob8521_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8521', math.random(1500, 3000), 1)
end

function mob8521_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8521_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8521_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8521, 1, 'mob8521_Action')
RegisterUnitEvent(8521, 2, 'mob8521_Leave')
RegisterUnitEvent(8521, 3, 'mob8521_Kill')
RegisterUnitEvent(8521, 4, 'mob8521_Die')
